package designMode.strategyPatter.demo;

/**
 * 陆离
 * 2023/11/6 10:55:58
 */
//定义上什么课
public abstract class Classes {
    public abstract String getName();
    public abstract String getClassName();

    /**
     * 通用逻辑
     * @return
     */
    public MsgResult msgResult(String name,String className,String statusCode){
        if ("1".equals(statusCode)){
            return new MsgResult(name,className,"这节课自习");
        }
        return new MsgResult(name,className,"准备好课本");
    }
    protected abstract double getStatusCode(String statusCode);
}

